﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace xk.mqm.test.common.Entity
{
    [Table("user")]
    public class Users
    {
        [Key]
        [Column("id")]
        public long Id { get; set; }
        [Column("user_name")]
        [MaxLength(50)]
        [Required]
        public string UserName { get; set; }=string.Empty;
        [Column("account")]
        [MaxLength(50)]
        [Required]
        public string Account { get; set; } = string.Empty;
    }
}
